﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XNA_TD
{
    public class TBall : Tower
    {
        Matrix[] boneTransforms;

        public TBall(Vector3 pos)
            : base(pos, "tBall")
        {
            boneTransforms = new Matrix[model.Bones.Count];
            model.Root.Transform = Matrix.CreateRotationX(MathHelper.ToRadians(90)) *
                    Matrix.CreateRotationZ(MathHelper.ToRadians(180)) *
                    Matrix.CreateTranslation(position);
            model.CopyAbsoluteBoneTransformsTo(boneTransforms);
        }

        public override void FixedGameUpdate()
        {
        }

        protected override Matrix[] CalculateAbsoluteBoneTransforms()
        {
            return boneTransforms;
        }

        protected override void Shot()
        {
            throw new NotImplementedException();
        }
    }
}
